package com.ylesb.ioc;
/**
 * @title: OkhttpFactory
 * @projectName springdemo
 * @description: TODO
 * @author White
 * @site : [www.ylesb.com]
 * @date 2022/7/616:39
 */

import okhttp3.OkHttpClient;

import java.util.concurrent.TimeUnit;

/**
 * @className    : OkhttpFactory
 * @description  : [描述说明该类的功能]  
 * @author       : [XuGuangchao]
 * @site         : [www.ylesb.com]
 * @version      : [v1.0]
 * @createTime   : [2022/7/6 16:39]
 * @updateUser   : [XuGuangchao]
 * @updateTime   : [2022/7/6 16:39]
 * @updateRemark : [描述说明本次修改内容] 
 */

public class OkhttpFactory {
    private OkHttpClient okHttpClient;
    public OkHttpClient getInstance(){
        if (okHttpClient == null) {
            okHttpClient=new OkHttpClient.Builder().build();
        }
        return okHttpClient;
    }
}
